import java.util.Scanner;
public class if02{
	public static void main(String[] args){
		Scanner myScore = new Scanner(System.in);
		System.out.println("请输入你的成绩:");
		double score = myScore.nextDouble();


		if (score>8.0){
			Scanner myGender = new Scanner(System.in);
			System.out.println("请输入你的性别(男/女)：");
			char gender = myGender.next().charAt(0);
			if(gender=='女'){
				System.out.println("进入女子组决赛");
			}
			else if(gender=='男'){
				System.out.println("进入男子组决赛");
			}
			else{
				System.out.println("你的性别输入错误");
			}
		}
		else{
			System.out.println("未能进入决赛");
		}
	}
}